//
//  ZHShouYeTableViewCell.m
//  ZhanHui
//
//  Created by 彭超 on 16/5/13.
//  Copyright © 2016年 彭超. All rights reserved.
//

#import "ZHShouYeTableViewCell.h"

@implementation ZHShouYeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}


-(void)createView
{
    // Initialization code
    self.image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10, 100, 100)];
    self.image.backgroundColor=[UIColor purpleColor];
    [self addSubview:self.image];
    
    self.title=[[UILabel alloc]initWithFrame:CGRectMake(120, 10, 300, 30)];
    self.title.text=@"2016艺术北京的最后一天";
    self.describe.textColor=[UIColor blackColor];
    [self addSubview:self.title];
    
    self.describe=[[UILabel alloc]initWithFrame:CGRectMake(120, 30, 300, 60)];
    self.describe.text=@"冬天穿衣服的技巧一定得练习，不然气质怎么体现咧";
    self.describe.textColor=[UIColor blackColor];
    [self addSubview:self.describe];
    
    self.bottom=[[UILabel alloc]initWithFrame:CGRectMake(300, 80, 100, 20)];
    self.bottom.text=@"6457人阅读";
    [self addSubview:self.bottom];
    
}


@end
